package com.zy.modules.sys.repo;

import com.zy.modules.sys.entity.SysMenuEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * <p>menu</p>
 * Created by zhezhiyong@163.com on 2017/7/25.
 */
public interface MenuRepository extends PagingAndSortingRepository<SysMenuEntity, Long>, JpaSpecificationExecutor<SysMenuEntity> {
    List<SysMenuEntity> findByParentId(Long parentId);

}
